package day05;

import java.util.ArrayList;

public class homework {
    public static void main(String[] args) {
        homework_master m = new homework_master(200,"王思聪");
        homework_member m1 = new homework_member(0,"老王");
        homework_member m2 =new homework_member(0,"老刘");
        homework_member m3 =new homework_member(0,"老李");
        homework_member m4 =new homework_member(0,"老八");
        homework_member m5 =new homework_member(0,"老六");
        ArrayList<Integer> redlist=m.sendmoney(100,5);
        m1.receivemoney(redlist);
        m2.receivemoney(redlist);
        m3.receivemoney(redlist);
        m4.receivemoney(redlist);
        m5.receivemoney(redlist);
        m.show();
        m1.show();
        m2.show();
        m3.show();
        m4.show();
        m5.show();
    }
}
